package com.woniu.after.client;

import com.woniu.after.client.param.CrowdRefundsMoneyParam;
import com.woniu.after.client.param.RefundsApplyParam;
import com.woniu.after.client.param.RefundsMoneyParam;
import com.woniu.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * name是项目名，contextId是client的名字
 */
@FeignClient(contextId = "refundsApplyManageClient", name = "after")
public interface RefundsApplyManageClient {
    /**
     * 退款申请
     *
     * @param refundsApplyParam
     * @return
     */
    @PostMapping("/refundsApply")
    Result refundsApply(@RequestBody RefundsApplyParam refundsApplyParam);

    /**
     * 退款处理
     *
     * @param refundsMoneyParam
     * @return
     */
    @PostMapping("/RefundsMoney")
    Result refundsMoney(@RequestBody RefundsMoneyParam refundsMoneyParam);

    @PostMapping("/crowdRefundsMoney")
    Result crowdRefundsMoney(@RequestBody CrowdRefundsMoneyParam crowdRefundsMoneyParam);
}
